<%# locals: question_list %>
<div class="" style="padding-top:10px;width:75%" id="div_qlnc">
  <div class="bar title_bar"><h4>新题目列表</h4></div>
  <div class="bar body">
  <%= form_for question_list, remote: true, html: { id: 'form_qlnc' } do |f| %>
    <%= f.hidden_field :competition_id %>
    <%= f.hidden_field :section_id %>
    <%= really_submit_tag %>
    <dl>
      <dt><%= f.label :name, '列表名称' %></dt>
      <dt><%= f.text_field :name %></dt>
    </dl>
    <dl>
      <dt><%= f.label :section_id, '比赛环节' %></dt>
      <dt><%= f.select :section_id,
        question_list.competition.sections.collect{|s|[s.name, s.id]},
        {}, { style: 'width:50%' } %> </dt>
    </dl>
    <%= f.submit '创建', 'class' => 'button primary form',
      onclick: create_js_true({ "set('really_submit','true')" => 'form_qlnc' }) %>
  <% end %>
  </div>
</div>